Skip to content

Conversation

ana-pantilie
Copy link

Needs #6327 #6290

Description

Add your description here, if it fixes a particular issue please provide a
link
to the issue.

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated. These may include:
    • golden tests
    • property tests
    • roundtrip tests
    • integration tests
      See Runnings tests for more details
  • Any changes are noted in the CHANGELOG.md for affected package
  • The version bounds in .cabal files are updated
  • CI passes. See note on CI. The following CI checks are required:
    • Code is linted with hlint. See .github/workflows/check-hlint.yml to get the hlint version
    • Code is formatted with stylish-haskell. See .github/workflows/stylish-haskell.yml to get the stylish-haskell version
    • Code builds on Linux, MacOS and Windows for ghc-9.6 and ghc-9.12
  • Self-reviewed the diff

Note on CI

If your PR is from a fork, the necessary CI jobs won't trigger automatically for security reasons.
You will need to get someone with write privileges. Please contact IOG node developers to do this
for you.

Comment on lines +150 to +153
ShelleyBasedEraAlonzo -> 39 -- TODO: check minSize for Alonzo
ShelleyBasedEraBabbage -> 39 -- TODO: check minSize for Babbage
ShelleyBasedEraConway -> 39 -- TODO: check minSize for Conway
ShelleyBasedEraDijkstra -> 39 -- TODO: check minSize for Dijkstra
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's up with these TODOs? I know they were there before, and I added a TODO for Dijkstra as well, but are they being tracked by any issue?

, Ledger.AtMostEra Ledger.MaryEra ledgerera
, Ledger.AtMostEra Ledger.AlonzoEra ledgerera
, Ledger.AtMostEra "Mary" ledgerera
, Ledger.AtMostEra "Alonzo" ledgerera
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, at line 561 and 526 we've got some TODOs which don't seem to be tracked anywhere. Btw, I see that this function already uses PParams, perhaps the TODO should be removed?

Comment on lines +74 to +75
script <-
handleExceptT (\(e :: SomeException) -> ApiError $ displayException e) (readFileScriptInAnyLang fp)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mgmeier through all the rebases I kept seeing this change come up and I recall you said it shouldn't be necessary. Maybe I/someone messed up the rebases and redid this change, or maybe we need it. Can you confirm which case it is?

Api.AlonzoEraOnwardsBabbage -> renderAlonzoPlutusPurpose
Api.AlonzoEraOnwardsConway -> renderConwayPlutusPurpose
-- TODO: fix
Api.AlonzoEraOnwardsDijkstra -> undefined
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be addressed.

]
forMachine _dtal (TraceLocalRootWaiting d dt) =
mconcat [ "kind" .= String "LocalRootWaiting"
-- TODO: `domainAddress` -> `accessPoint`
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this need to be addressed in this PR? Should we open a separate issue?

(M.notMember stakeKeyHash . L.scDeposits)
(\accountsStates -> isJust $ do
_state <- M.lookup stakeKeyHash accountsStates
pure () -- TODO: should we check for balance?
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be addressed after fixing testnet.

_state <- M.lookup stakeKeyHash accountsStates
pure () -- TODO: should we check for balance?
)
-- (M.notMember stakeKeyHash . L.scDeposits)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this commented out instead of removed?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the previous implementation, to be removed once we fix the testnet tests.

import qualified Hedgehog as H
import qualified Hedgehog.Extras as H

-- TODO we're not supporting non-p2p topology, does this test make any sense now?
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds like this needs to be addressed.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had another look. I'll remove this test.

let disabledTests = pure $ T.testGroup "tests disabled" []

E.withArgs args $ tests >>= T.defaultMainWithIngredients T.defaultIngredients
-- TODO: fix testnet tests and reenable here
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just marking this here as the testnet tests TODO.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but it's out of scope for the node 10.6 release.

({ lib, pkgs, ... }: lib.mkIf (pkgs.stdenv.hostPlatform != pkgs.stdenv.buildPlatform) {
# Remove hsc2hs build-tool dependencies (suitable version will be available as part of the ghc derivation)
packages.Win32.components.library.build-tools = lib.mkForce [ ];
# TODO: error: The option `packages.Win32' does not exist.
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be addressed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.